home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue25 / mfboid1s / MFBOID1S.ZIP / ufrmAbout.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-02-15  |  1.1 KB  |  50 lines

  1. unit ufrmAbout;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, ComCtrls, Menus;
  8.  
  9. type
  10.   TfrmAbout = class(TForm)
  11.     txtAbout: TRichEdit;
  12.     MainMenu1: TMainMenu;
  13.     File1: TMenuItem;
  14.     Exit1: TMenuItem;
  15.     Save1: TMenuItem;
  16.     procedure Exit1Click(Sender: TObject);
  17.     procedure FormShow(Sender: TObject);
  18.     procedure Save1Click(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. var
  26.   frmAbout: TfrmAbout;
  27.  
  28. implementation
  29.  
  30. {$R *.DFM}
  31.  
  32. //******************************************************************************
  33. procedure TfrmAbout.Exit1Click(Sender: TObject);
  34. begin
  35.     Hide;
  36. end;
  37.  
  38. //******************************************************************************
  39. procedure TfrmAbout.FormShow(Sender: TObject);
  40. begin
  41.     txtAbout.Lines.LoadFromFile('about.rtf');
  42. end;
  43.  
  44. //******************************************************************************
  45. procedure TfrmAbout.Save1Click(Sender: TObject);
  46. begin
  47.     txtAbout.Lines.SaveToFile('about.rtf');
  48. end;
  49. end.
  50.